# -*- coding: utf-8 -*-

import oss2

#import sys
#reload(sys)
#sys.setdefaultencoding('gbk')


auth = oss2.Auth('1MhXEmb2I94AiEHT', 'PbRcLk7LDvhPiU5dJQ9Wy3qhaNsBhs')
endpoint = 'http://oss-cn-hangzhou-internal.aliyuncs.com'
bucket = oss2.Bucket(auth, endpoint, 'xms-dianping')


#oss2.resumable_upload(bucket, 'res.txt', 'F:/res.txt')
oss2.resumable_download(bucket, 'res.txt', '/home/maintainer/dianping/dianping/spiders/data/res.txt')
